<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="s" uri="/struts-tags"%> 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'MSDeviceList.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<!--框架必需start-->
<script type="text/javascript" src="ui/js/jquery.js"></script>
<script type="text/javascript" src="ui/js/framework.js"></script>
<link href="ui/css/import_basic.css" rel="stylesheet" type="text/css"/>
<link rel="stylesheet" type="text/css" id="skin" prePath="/"/>
<link rel="stylesheet" type="text/css" id="customSkin"/>
<link href="ui/skins/blue/style.css" rel="stylesheet" type="text/css" id="theme" themeColor="blue"/>
<!--框架必需end-->
  </head>
  
  <body>
  <div id="scrollContent">
   <fieldset>
       	<legend>设备一览表</legend>
    	<div id="scrollContent" style="float: left;width: 100%">
    		<span>管理站设备数：<s:property value="deviceList.size"/></span>
			<table class="tableStyle" useClick="false" id="list" style="text-align: center;">
			<tr>
				<th width="5%">编号</th>
				<th width="15%">设备名称</th>
				<th width="25%">IP地址</th>
				<th width="15%">设备类型</th>
				<th width="10%">所属管理域</th>
			</tr>
			<s:iterator value="deviceList"  var="dl">
				<tr>
				<td><s:property value="#dl.dId"/></td>
				<td><s:property value="#dl.dName"/></td>
				<td><s:property value="#dl.dIp"/></td>
				<td>
					<s:if test="#dl.dType==1">
						个人电脑
					</s:if>
					<s:else>
						打印机
					</s:else>
				<td><s:property value="#dl.domain.dmName"/></td>
			</tr>
			</s:iterator>		
		</table>	
		</div>	
	</fieldset>
	</div>
  </body>
</html>
